package main 

import (

	"fmt"
)

func main(){


	for i:=0;i<=10;i++{
		fmt.Println("test,ok")
	}

	for i:=0;i<=5;i++{
		fmt.Println("hello,world")
	}

	var j byte 

	for j<=10 {

		fmt.Println("bbb")

		j++
	}

	//for ;;{
	//	fmt.Println("while die")
	//}

	var x int 

	for {

		if x <10 {
			fmt.Println("father",x)
		}else {
			break
		}
		x++
	}

	str:="hello,china中国"
	str2:=[]rune(str)
	for i:=0;i<len(str2);i++{
		fmt.Printf("%c",str2[i])
	}

	fmt.Println()
	str = "china美国"
	for idx,val :=range str{
		fmt.Printf("idx=%d,val=%c\n",idx,val)
	}
}